package com.neo.util;



import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class MapToList {
    public static  List<HpjParamer> mapList(Map<String,String> map,String uuid){
        List<HpjParamer> maptolist=new ArrayList<>();
        for (Map.Entry<String, String> entry : map.entrySet()) {
            HpjParamer hpjParamer = new HpjParamer();
            hpjParamer.setPosition(entry.getKey());
            hpjParamer.setComputer(entry.getValue());
            hpjParamer.setUuid(uuid);
            maptolist.add(hpjParamer);
        }
        return maptolist;
    }
}
